<div class="form-group">
    <label for="Text">题目</label>
    <textarea name="title" class="form-control" rows="2" placeholder="题目..."
              id="Text">{{ old('title')?old('title'):$data->title }}</textarea>
</div>
<div class="form-group">
    <label for="InputA">选项A</label>
    <input type="text" name="option_a" value="{{ old('option_a')?old('option_a'):$data->option_a }}"
           class="form-control" id="InputA" placeholder="选项A">
</div>
<div class="form-group">
    <label for="InputB">选项B</label>
    <input type="text" name="option_b" value="{{ old('option_b')?old('option_b'):$data->option_b }}"
           class="form-control" id="InputB" placeholder="选项B">
</div>
<div class="form-group">
    <label for="InputC">选项C</label>
    <input type="text" name="option_c" value="{{ old('option_c')?old('option_c'):$data->option_c }}"
           class="form-control" id="InputC" placeholder="选项C">
</div>
<div class="form-group">
    <label for="InputD">选项D</label>
    <input type="text" name="option_d" value="{{ old('option_d')?old('option_d'):$data->option_d }}"
           class="form-control" id="InputD" placeholder="选项D">
</div>
<div class="form-group">
    <label>正确答案：</label>
    <label class="radio-inline">
        <input type="radio" name="answer" value="A"
               @if(!empty(old('answer')) && old('answer')=='A' || $data->answer=='A') checked @endif> A
    </label>
    <label class="radio-inline">
        <input type="radio" name="answer" value="B"
               @if(!empty(old('answer')) && old('answer')=='B' || $data->answer=='B') checked @endif> B
    </label>
    <label class="radio-inline">
        <input type="radio" name="answer" value="C"
               @if(!empty(old('answer')) && old('answer')=='C' || $data->answer=='C') checked @endif> C
    </label>
    <label class="radio-inline">
        <input type="radio" name="answer" value="D"
               @if(!empty(old('answer')) && old('answer')=='D' || $data->answer=='D') checked @endif> D
    </label>
</div>
<button id="choicetj" class="btn btn-default">提交</button>
<script>
    $('#choicetj').click(function () {
        $(this).html('<i class="fa fa-spinner fa-pulse"></i>').css('width', '54px');
    });
</script>
@csrf